package DecoratorPattern;

/**
 * @description:
 * @author: ywk
 * @date: 2020-08-01
 */
public class DecoratorPatternDemo {
    public static void main(String[] args) {
        Shape circle = new Circle();
        ShapeDecorator redCircle = new RedShapeDecorator(new Circle());
        ShapeDecorator redRectangle = new RedShapeDecorator(new Rectangle());

        System.out.println("circle with normal border");

        circle.draw();
        redCircle.draw();
        redRectangle.draw();
    }
}
